package cxt.cn.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

import cxt.cn.domain.Student;
@Repository
public interface StudentDao {
    //查询所有学生
    @Select("select * from student;")
    List<Student> findAll();
    //保存账户
    @Insert("insert into ceshi.student(sno, sname, sex, birth, classno) VALUES (#{Sno},#{Sname},#{Sex},#{Birth},#{ClassNo})")
    void save(Student student);
}
